package cn.initcap.designpattern.pattern.behavioral.mediator;

/**
 * 中介者模式
 *
 * @author initcap
 * @date Created in 2018/10/31 PM11:38.
 */
public class Test {

    public static void main(String[] args) {
        User user = new User("initcap");
        User tom = new User("tom");

        user.sendMessage("Hey! Tom !");
        tom.sendMessage("OK! initcap!");
    }

}
